diff -up keepassx-0.4.3/src/lib/random.cpp.gcc47 keepassx-0.4.3/src/lib/random.cpp
--- keepassx-0.4.3/src/lib/random.cpp.gcc47	2012-03-30 18:17:25.913476536 -0400
+++ keepassx-0.4.3/src/lib/random.cpp	2012-03-30 18:17:33.346409646 -0400
@@ -20,6 +20,7 @@
 
 #include "random.h"
 #include <cstdlib>
+#include <unistd.h>
 
 
 #if defined(Q_WS_X11) || defined(Q_WS_MAC)